<%@page import="cn.com.entity.Departments"%>
<%@page import="cn.com.dao.DepartmentsDao"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
int departid=Integer.parseInt(request.getParameter("departid")); 
DepartmentsDao departmentsdao=new DepartmentsDao();
Departments  departments=departmentsdao.selectOneDepartments(departid);
%>
<h2>科室信息</h2>
<form action="updatedepartmentsaction" method="post">
<table align="center" border="1" width="100%">
	<tr>
	<td>科室名</td>
	<td>科室简介</td>
	<td>科室位置</td>
	</tr>

	<tr>
	<td>
	<input type="hidden" name="departments.departmentsid" value="<%=departments.getDepartmentsid()%>"/>
	<input type="text" name="departments.departmentsname" value="<%=departments.getDepartmentsname() %>"/></td>
	<td><textarea rows="2" cols="20" name="departments.departmentsprofile" ><%=departments.getDepartmentsprofile() %></textarea></td>
	<td><textarea rows="2" cols="20" name="departments.departmentsposition"><%=departments.getDepartmentsposition() %></textarea></td>
	</tr>
	<tr><td colspan="3" align="center"><input type="submit" value=" 保存 " style="font-size:20px; color:#FFF; background-image: url(images/lanseanniu.jpg);"/></td></tr>
</table>
</form>	
</body>
</html>